package com.yuanfeng.goods.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuanfeng.goods.dto.GdbMerchantGoodsSpecValueDTO;
import com.yuanfeng.goods.dto.ManageGdsBaseAddParamvDTO;
import com.yuanfeng.goods.dto.ManageSpecValueInfoDTO;
import com.yuanfeng.goods.entity.GoodsSpecValueEntity;
import com.yuanfeng.goods.vo.GoodsReleasedVO;
import com.yuanfeng.goods.vo.ManageSpecValueResultSolVO;
import com.yuanfeng.goods.vo.ManageSpecValueResultVO;
import com.yuanfeng.goods.vo.ManageSpecValueVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName GoodsSpecValueMapper
 * @Description 商品规格值表
 * @Author cf
 * @Date 2023/6/27 11:57
 * @Version 1.0
 */
@Mapper
public interface GoodsSpecValueMapper extends BaseMapper<GoodsSpecValueEntity> {


    /**
     * 查询商品规格值
     *
     * @param params
     * @return
     */
    GoodsReleasedVO selectGoodsReleasedParam(@Param("param") ManageGdsBaseAddParamvDTO params);


    /**
     * 查询规格
     *
     * @param param
     * @return
     */
    List<ManageSpecValueResultVO> selectByShopId2(@Param("param") ManageSpecValueVO param);


    /**
     * 查询规格
     *
     * @param param
     * @return
     */
    List<ManageSpecValueResultSolVO> selectByShopId3(@Param("param") ManageSpecValueVO param);


    /**
     * 插入规格
     *
     * @param addParams
     */
    void insertBatch(@Param("addParams") List<GdbMerchantGoodsSpecValueDTO> addParams);

    /**
     * 修改
     *
     * @param updateParams
     */
    void updateBatch(@Param("updateParams") List<GdbMerchantGoodsSpecValueDTO> updateParams);


    /**
     * 根据条件查询
     *
     * @param param
     * @return
     */
    List<ManageSpecValueVO> selectByResultParam(@Param("param") ManageSpecValueInfoDTO param);


    /**
     * 根据条件查询
     *
     * @param param
     * @return
     */
    List<ManageSpecValueVO> selectByResultParam2(ManageSpecValueInfoDTO param);
}



